<?php require_once(HResponse::path() . 'common/header.html'); ?>
<link href="<?php echo HResponse::uri(); ?>css/inner.css?3=4" rel="stylesheet" type="text/css" media='all' />
<link href="<?php echo HResponse::uri(); ?>css/litebox.css" rel="stylesheet" type="text/css" media="all" />
<script type="text/javascript" src="<?php echo HResponse::uri(); ?>common/scroll.js?3=10"></script>
</head>
<body>
<?php require_once(HResponse::path() . 'common/top.html'); ?>
<div id="bannerabout">
    <?php $record = HResponse::getAttribute('record'); ?>
    <?php $record_next = HResponse::getAttribute('record_next'); ?>
    <?php $record_pre = HResponse::getAttribute('record_pre'); ?>
    <!--<img src="<?php echo HResponse::touri($record['image_path']); ?>"/>-->
    <h2><?php echo HResponse::getAttribute('ParentName'); ?></h2>
    <?php if(($record['id']==676)) { ?>
  	<img src="<?php echo HResponse::uri(); ?><?php echo $record['image_path']; ?>" />
    <?php } else { ?>
    <img src="<?php echo HResponse::getAttribute('bannerImage'); ?>" />
    <?php } ?>
</div>
<div class="wrapper">
    <div id="m_right">
        <article id="article">
            <h3><?php echo HResponse::getAttribute('ParentName'); ?></h3>
            <?php if ($record['id'] == 666 || $record['id'] == 665) { ?>
            <?php } else if ($record['id'] == 670) { ?>
            <div class="news_title">
                <span><?php echo date('Y-m-d', strtotime($record['create_time'])) ?></span>
                <?php echo $record['name']; ?>
            </div>
            <div class="news_title2">
                <?php echo $record['name']; ?><br>
                <span><?php echo date('Y-m-d', strtotime($record['create_time'])) ?></span>
            </div>
            <?php } ?>
            <?php if ($record['id'] == 676) { ?>
            <div class="prod_man">
                <div class="prod_a prod_a1">
                    <div class="prod_a_th prod_a1_th">ACETATE FRAME</div>
                    <a href="<?php echo HResponse::url('cate', 'parent_id=810'); ?>" class="prod_la prod_a1_la">More Products</a>
                </div>
                <div class="prod_a prod_a2">
                    <div class="prod_a_th prod_a2_th">METAL FRAME</div>
                    <a href="<?php echo HResponse::url('cate', 'parent_id=820'); ?>" class="prod_la prod_a2_la">More Products</a>
                </div>
            </div>
            <?php } ?>
			<?php if ($record['id'] == 665) { ?>
            	<div class="contacts_min"><?php echo HString::decodeHtml($record['content']); ?></div>
                <div class="contacts_post">
                <div class="post_ht">SAY HELLO!</div>
                <form action="<?php echo HResponse::url('message/add'); ?>" name="form1" method="post">
                	<div class="post_na1">Your Name: *</div>
                	<div class="post_nat"><input name="name" id="name" class="input" type="text" value="" attr="" /></div>
                    <div class="post_na1">Your E-mail: *</div>
                	<div class="post_nat"><input name="email" id="email" class="input" type="text" value="" attr="" /></div>
                    <div class="post_na1">Subject: *</div>
                	<div class="post_nat"><input name="model" id="subject" class="input" type="text" value="" attr="" /></div>
                    <div class="post_na1">Message: *</div>
                	<div class="post_nat"><textarea name="content" id="content" class="input" rows="" attr=""></textarea></div>
                    <button class="submit">SEND</button>
                </form>
                <script type="text/javascript">
				$(function(){
					$(".input").blur(function() {
						if ($(this).val()=="") {
							$(this).val($(this).attr("attr"));
						}
					}).focus(function() {
						if ($(this).val()==$(this).attr("attr")) {
							$(this).val("");
						}
					});
				});

				function checkForm() {
					var name = $("#name").val();
					var email = $("#email").val();
					var content = $("#content").val();
					if (name.length < 1 || name==$("#name").attr("attr")) {
						alert("Please fill in your name!");
						return false;
					}
					if (email.length < 1 || email==$("#email").attr("attr")) {
						alert("Please fill in your email!");
						return false;
					}
					if (content.length < 1 || content==$("#content").attr("attr")) {
						alert("Please fill in the consultation content!");
						return false;
					}
					return true;
				}
				</script>
                </div>
            <?php } else { ?>
            <?php echo HString::decodeHtml($record['content']); ?>
            <?php } ?>
        </article>
    </div>
    <div class="clear"></div>
    <?php if ($record['parent_id'] == 724){ ?>
    <div class="nextbox">
       <ul class="back"><a href="javascript:history.back(-1);">Back</a></ul>
       <ul class="nextnews">
            <span>Next<br>
           <a href="<?php echo HResponse::url('article', 'id=' . $record_next['id']); ?>" title="<?php echo $record_next['name']; ?>"><?php echo $record_next['name']; ?></a>
       </span>
           Previous<br>
           <a href="<?php echo HResponse::url('article', 'id=' . $record_pre['id']); ?>" title="<?php echo $record_pre['name']; ?>"><?php echo $record_pre['name']; ?></a>
       </ul>
   </div>
    <?php } ?>
</div>
    <?php if($record['id'] == 666){ ?>
    	<div class="pictures_mant"><div class="wrapper_wn">
        <div class="honor_ht">HONOR</div>
        <div id="sca1" class="warp-pic-list hidden-xm6">
            <div id="wrapBox1" class="wrapBox">
                <ul id="count2" class="count clearfix">
                    <?php $aboutUsList = HResponse::getAttribute('aboutus_list'); ?>
                    <?php foreach($aboutUsList as $item) { ?>
                    <li>
                        <a href="<?php echo HResponse::touri($item['image_path']); ?>" class="img_wrap inline-block litebox" data-litebox-group="group-1">
                            <img src="<?php echo HResponse::touri($item['image_path']); ?>" border="0" class="inline-block">
                        </a>
                    </li>
                    <?php } ?>
                </ul>
            </div>
            <a id="right1" class="prev icon btn"></a>
			<a id="left1" class="next icon btn"></a>
            </div>
        </div></div>
    <?php } ?>
<script src="<?php echo HResponse::uri(); ?>common/images-loaded.min.js" type="text/javascript"></script>
<script src="<?php echo HResponse::uri(); ?>common/litebox.js" type="text/javascript"></script>
<script type="text/javascript">
    $('.litebox').liteBox();
</script>
<script type="text/javascript">
$(document).ready(function(){
	$("#count2").dayuwscroll({
		parent_ele:'#wrapBox1',
		list_btn:'#tabT04',
		pre_btn:'#left1',
		next_btn:'#right1',
		path: 'left',
		auto:true,
		time:3000,
		num:4,
		gd_num:4,
		waite_time:1000
	});
});
</script>
<?php require_once(HResponse::path() . 'common/footer.html'); ?>
</body>
</html>